package com.nsjr.jrznandroid.nsjr.loginregister;
import android.os.Bundle;
import android.view.View;

import com.jrzn.base.BaseActivity;
import com.nsjr.jrznandroid.MainActivity;
import com.nsjr.jrznandroid.R;

public class LoginActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        init();
    }

    private void  init(){
        findViewById(R.id.tv_login_register).setOnClickListener(this);
        findViewById(R.id.tv_login_login).setOnClickListener(this);
        findViewById(R.id.tv_login_findpwd).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tv_login_register:
                toActivity(RegisterActivity.class);
                break;
            case R.id.tv_login_login:
                toActivity(MainActivity.class);
                break;
            case R.id.tv_login_findpwd:
                toActivity(FindPwdActivity.class);
                break;
        }
    }
}
